package com.youmans.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantVodUtils implements InitializingBean {
    /**
     * aliyun.vod.file.keyid=LTAI5tLmxqCDAEVL9pXaBde4
     * aliyun.vod.file.keysecret=cGwJuRlPsS9eRvCijuLjA3wfxZ58aQ
     * @throws Exception
     */
    @Value("${aliyun.vod.file.keyid}")
    private String keyid ;
    @Value("${aliyun.vod.file.keysecret}")
    private String keysecret ;

    public static String ACCESS_KEY_SECRET ;
    public static String ACCESS_KEY_ID ;
    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = keyid ;
        ACCESS_KEY_SECRET = keysecret ;
    }
}
